package com.matt.domain;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "tb_sale_faq")
@EqualsAndHashCode(callSuper = true)
public class SaleFAQ extends Domain{

    @Column(columnDefinition = "longtext COMMENT '问题'")
    private String question;

    @Column(columnDefinition = "longtext COMMENT '答案'")
    private String answer;

    @Column(columnDefinition = "varchar(32) COMMENT '园区id'")
    private String areaId;
    
    @Column(columnDefinition = "longtext COMMENT '审核状态 0:待审核 1:已审核 2:已拒绝'")
    private Integer state;
    
    @Column(columnDefinition = "varchar(32) COMMENT '修改人'")
    private String modifyed;
    
    @Column(columnDefinition = "datetime COMMENT '修改时间'")
    private Date modifyTime;
    
    @Column(columnDefinition = "varchar(32) COMMENT '创建人'")
    private String creatorId;

    @Column(columnDefinition = "varchar(32) COMMENT '创建人名字'")
    private String creator;
}

